package com.greatwqs.wmall.user.provider.service;

import com.greatwqs.wmall.user.provider.model.dto.ChangePasswordDto;
import com.greatwqs.wmall.user.provider.model.dto.UserRegisterDto;
import com.greatwqs.wmall.user.provider.model.vo.UserVo;

/**
 * @author wang-qingsong
 */
public interface UserService {

    /**
     * register new user, return new userId
     *
     * @param registerDto
     * @return
     */
    Long register(UserRegisterDto registerDto);


    /**
     * get user info by userId
     *
     * @param userId
     * @return
     */
    UserVo getUserVo(Long userId);


    /**
     * 修改密码
     *
     * @param changePasswordDto
     */
    void changePassword(ChangePasswordDto changePasswordDto);
}
